public class TextDemo {
    public static boolean equal(int[] array){
        if(array[0]!=array[1]||array[0]!=array[2]||array[1]!=array[2]){
            return false;
        }else{
            return true;
        }
    }


    public static void main1(String[] args) {
        int b = 10;
        String str = "";
        for(int n = b;n>0;n/=2){
            str = (n%2)+str;
        }
        System.out.println(str);
    }

    public static void print(boolean[][] array){
        System.out.print(" ");
        for(int i = 0;i< array[0].length;i++){
            System.out.print(i+1+" ");
        }
        System.out.println();
        for(int i = 0;i< array.length;i++){
            System.out.print(i+1);
            for(int j = 0;j< array[i].length;j++){
                System.out.print(array[i][j]==true?"* ":"  ");
            }
            System.out.println();
        }
    }
    public static void text1(){
        int[] array = new int[10];
        for(int i = 0;i<10;i++){
            array[i] = 9-i;
        }
        for(int i =0;i<10;i++) {
            array[i] = array[array[i]];
        }
        for(int i = 0;i<10;i++){
            System.out.print(array[i]+" ");
        }
    }

    public static void text2(int[][] array){
        System.out.print(" ");
        for(int i = 0;i< array[0].length;i++){
            System.out.print(i+1+" ");
        }
        System.out.println();
        for(int i = 0;i< array.length;i++){
            System.out.print(i+1);
            for(int j = 0;j< array[i].length;j++){
                System.out.print(array[j][i]);
            }
            System.out.println();
        }
    }
    public static int lg(int N){
        int count = 0;
        do {
            count++;
            N/=2;
        }while(N!=0);
        return --count;
    }
    public static int[] histogram(int[] array,int M){
        int[] ans = new int[M];
        for(int i = 0;i<array.length;i++){
           if(array[i]>=0&&array[i]<=M-1){
               ans[array[i]]++;
           }
        }
        return ans;
    }
    public static String exR1(int n){
        if(n<=0) return "";
        return exR1(n-3)+n+exR1(n-2)+n;
    }
    public static int mystery(int a,int b){
        if(b==0)  return 0;

        if(b%2==0)  return mystery(a+a,b/2);

        return mystery(a+a,b/2)+a;

    }

    public static long F(int N){
        if(N==0) return 0;
        if(N==1) return 1;

        return F(N-1)+F(N-2);
    }




    public static void main(String[] args) {



    }
}